﻿using AdminFrame.Enum;
using System.ComponentModel.DataAnnotations;

namespace AdminFrame.Application.Contracts.Parameters.Dtos
{
    public class CreateUpdateParameterDto
    {
        [Required]
        [StringLength(128)]
        public string Name { get; set; }

        [Required]
        [StringLength(64)]
        public string Code { get; set; }

        public ParameterTypeEnum Type { get; set; }

        [StringLength(512)]
        public string Description { get; set; }

        public IsActiveEnum IsActive { get; set; } = IsActiveEnum.Yes;
    }
}